package com.todo.sight.bootstrap;

import org.dromara.easyes.starter.register.EsMapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author azhebuxing
 * @date 2025/2/17 13:18
 * @description
 */
@EnableFeignClients(basePackages = "com.todo.sight.application.remote")
@EnableDiscoveryClient
@SpringBootApplication
@EsMapperScan("com.todo.sight.infrastructure.helper.es.mapper")
@EnableAspectJAutoProxy
@MapperScan("com.todo.sight.infrastructure.mapper")
@ComponentScan(basePackages = {"com.todo"})
public class SightApplication {

    public static void main(String[] args) {
        SpringApplication.run(SightApplication.class, args);
    }

}
